package com.vito.framework.system.user.service;

import com.vito.framework.base.exception.CommonException;
import com.vito.framework.base.service.BaseService;
import com.vito.framework.system.role.model.RoleBean;
import com.vito.framework.system.user.model.UserBean;

import java.util.List;
import java.util.Map;

public interface UserService extends BaseService<UserBean> {


	List<UserBean> getUserList(Map<String, Object> paramMap) throws CommonException;
	UserBean getUserById(Map<String, Object> paramMap) throws CommonException;
	List<RoleBean> getRoleByOrgId(String orgId) throws CommonException;
	void addUser(UserBean user)throws CommonException;
	void editUser(UserBean user)throws CommonException;
	void deleteUser(Map<String, Object> paramMap)throws CommonException;
	String queryTemplateList(Map<String, Object> map)throws CommonException;
	UserBean getUserByName(Map<String, Object> paramMap) throws CommonException;
	/**
	 * Author:zhaorui
     * Create At:2010-06-29
     * Description: [用户管理-启动用户信息]
     * @return String
     */
	void pauseUser(Map<String, Object> paramMap)throws CommonException;
	/**
	 * Author:zhaorui
     * Create At:2010-06-29
     * Description: [用户管理-启动用户信息]
     * @return String
     */
	void reStartUser(Map<String, Object> paramMap)throws CommonException;
	
	/**
	* Author:zhaowentao
	* Create At:2011-9-1
	* Description: [用户修改个人资料]
	* @return void
	*/
	void savePresonInfo(UserBean userBean)throws CommonException;

	Integer updatePassword(Map<String, Object> paramMap)throws CommonException;
	
	UserBean getUserByuserid(String userId) throws CommonException;
	void editGly(UserBean userbean) throws CommonException;

	UserBean getLoginUserById(Map<String, Object> paramMap);
}
